<template>
    <div class='bar'>
        <a-menu :style="{ paddingBottom: footH }" mode='inline' :defaultOpenKeys="defaultOpenKeys"
            :selectedKeys="[$route.path]">
            <template v-for="(item) in menus">
                <a-sub-menu :key='item.path' v-if="item.children">
                    <span slot="title" :class="item.path == 'sub2' ? 'sub-menu-div' : ''">
                        <!-- <a-icon :component="item.icon" /> -->
                        <Iconfont :type='item.icon'
                            :style="$route.path == item.path ? { color: 'var(--themeColor)' } : {}">
                        </Iconfont>
                        <!-- <i :class="item.icon" class="icon-class" 
                        :style="$route.path==item.path?{color:'var(--themeColor)'}:{}"></i> -->
                        <span>{{ $store.state.language == 'zh' ? item.ch_title : item.en_title }}</span>
                    </span>
                    <template v-for="(item2) in item.children">
                        <a-menu-item :key="item2.path" :class="item2.path == '/block' ? 'net-menu-item' : ''">
                            <router-link :to='{ name: item2.routeName }'>
                                <!-- <a-icon class="log-icon" :component="item2.icon" /> -->
                                <!-- <i :class="item2.icon" class="icon-class" 
                                :style="$route.path==item.path?{color:'var(--themeColor)'}:{}"></i> -->
                                <Iconfont :type='item2.icon'
                                    :style="$route.path == item.path ? { color: 'var(--themeColor)' } : {}"></Iconfont>
                                <span>{{ $store.state.language == 'zh' ? item2.ch_title : item2.en_title }}</span>
                            </router-link>
                        </a-menu-item>
                    </template>
                </a-sub-menu>
                <a-menu-item :key="item.path" v-else>
                    <router-link :to='{ name: item.routeName }'>
                        <!-- <a-icon :component="item.icon" /> -->
                        <!-- :style="$route.path==item.path?{color:'var(--themeColor)'}:{}" -->
                        <!-- <i :class="item.icon" class="icon-class"></i> -->
                        <Iconfont :type='item.icon' class="icon-class"></Iconfont>
                        <span>{{ $store.state.language == 'zh' ? item.ch_title : item.en_title }}</span>
                    </router-link>
                </a-menu-item>
            </template>
        </a-menu>
        <p class="foot" style="margin-bottom: 0 !important ">
            {{ $store.state.commonModule.oemConfig.company }}
        </p>

    </div>
</template>
<script>
// import general from '../../../static/images/svg/ic_overview_select.svg'
// import phy from '../../../static/images/svg/ic_physical_select.svg'
// import node from '../../../static/images/svg/ic_node.svg'
// import topology from '../../../static/images/svg/ic_topology_selected.svg'
// import storage from '../../../static/images/svg/ic_storage_select.svg'
// import sumary from '../../../static/images/svg/ic_general.svg'
// import disk from '../../../static/images/svg/ic_Networkdisk_normal.svg'
// import file from '../../../static/images/svg/ic_filesystem_normal.svg'
// import obj from '../../../static/images/svg/ic_Objectstorage02_normal.svg'
// import share from '../../../static/images/svg/ic_filesharing_normal.svg'
// import oper from '../../../static/images/svg/ic_operation_select.svg'
// import check from '../../../static/images/svg/ic_check_normal.svg'
// import dila from '../../../static/images/svg/ic_dilatationShrinkage_normal.svg'
// import osddm from '../../../static/images/svg/ic_OSDDM_normal.svg'
// import control from '../../../static/images/svg/ic_control_normal.svg'
// import pre from '../../../static/images/svg/ic_pre_configuration_normal.svg'
// import ec from '../../../static/images/svg/ic_EC_normal.svg'
// import col from '../../../static/images/svg/ic_informationcollection_select.svg'
// import monitor from '../../../static/images/svg/ic_monitoring_selected.svg'
// import alarm from '../../../static/images/svg/ic_alarm_selected.svg'
// import diskcheckicon from '../../../static/images/svg/16_l_ic_diskcheck.svg'
// import logicon from '../../../static/images/svg/16_l_ic_eventlog_selected.svg'
export default {
    name: 'Menubar',
    template: '<a-icon :component = "general,phy,node,storage,sumary,disk,file,pre,obj,ec,share,control,oper,check,dila,osddm,diskcheckicon,logicon" />',
    data() {
        return {
            // general,
            // phy,
            // node,
            // topology,
            // storage,
            // sumary,
            // disk,
            // file,
            // obj,
            // share,
            // oper,
            // check,
            // dila,
            // osddm,
            // control,
            // pre,
            // ec,
            // col,
            // monitor,
            // alarm,
            // diskcheckicon,
            // logicon,
            footH: '',
            menus: [],
            menus_copy: [
                //概览
                { ch_title: '概览', en_title: 'Home', routeName: 'index', path: '/index', icon: 'icon-overview16f', authId: 'B1' },//general
                //物理资源
                {
                    ch_title: '物理资源', en_title: 'Physical Resources', icon: 'icon-physical16f', path: 'sub1', authId: 'C1', children: [  //phy
                        //概况
                        { ch_title: '概况', en_title: 'Overview', routeName: 'resources', path: '/resources', icon: 'icon-general16l', authId: 'C2', },  //sumary
                        //节点信息
                        { ch_title: '节点信息', en_title: 'Node Information', routeName: 'physical', path: '/physical', icon: 'icon-node16l', authId: 'C3', }, //node
                        //网络拓扑
                        { ch_title: '网络拓扑', en_title: 'Network Topology', routeName: 'topology', path: '/topology', icon: 'icon-topology16l', authId: 'C4', }, //topology
                    ]
                },
                //存储管理
                {
                    ch_title: '存储管理', en_title: 'Storage', icon: 'icon-pool16f', path: 'sub2', authId: 'D1', children: [ //storage
                        //概况
                        { ch_title: '概况', en_title: 'Overview', routeName: 'overview', path: '/overview', icon: 'icon-general16l', authId: 'D2', }, //sumary
                        { ch_title: '存储池', en_title: 'Pool', routeName: 'pool', path: '/pool', icon: 'icon-pool16l', authId: 'D4' }, //sumary
                        //网络磁盘 --> 块设备
                        { ch_title: '块设备', en_title: 'Block', routeName: 'block', path: '/block', icon: 'icon-networkdisk16l', authId: 'D3', }, //disk
                        //文件系统
                        { ch_title: '文件系统', en_title: 'File System', routeName: 'fsview', path: '/fsview', icon: 'icon-filesystem16l', authId: 'D9', }, //file
                        //对象存储
                        { ch_title: '对象存储', en_title: 'Object Storage', routeName: 'objview', path: '/objview', icon: 'icon-obs16l', authId: 'D14', }, //obj
                        //文件共享
                        // { ch_title:'文件共享', en_title:'File Sharing', routeName:'filesharing', path:'/filesharing', icon:'icon-share16l',authId:'D17', }, //share
                        //网关管理
                        // { ch_title:'网关管理', en_title:'Gateway Manage', routeName:'GatewayManage', path:'/gatewayManage', icon:'icon-gateway16l',authId:'D17', }, //share
                    ]
                },
                //运维中心
                {
                    ch_title: '运维中心', en_title: 'Operation', icon: 'icon-configuration16f', path: 'sub3', authId: 'E1', children: [ //oper
                        //集群检查
                        // { ch_title:'集群检查', en_title:'Cluster Check', routeName:'cluster', path:'/cluster', icon:'icon-CHKDSK16l',authId:'E2', }, //check
                        //OSD磁盘管理
                        { ch_title: 'OSD磁盘管理', en_title: 'OSD Disk Manage', routeName: 'diskmgr', path: '/diskmgr', icon: 'icon-osddm16l', authId: 'E5', },  //osddm
                        //集群调控
                        { ch_title: '集群调控', en_title: 'Cluster Regulation', routeName: 'regular', path: '/regular', icon: 'icon-control16l', authId: 'E6', }, //control
                        //纠删码配置管理
                        { ch_title: '纠删码配置管理', en_title: 'Erasure Code C/S', routeName: 'erasure', path: '/erasure', icon: 'icon-ec16l', authId: 'E7', },  //ec
                        //磁盘检测
                        { ch_title: '磁盘检测', en_title: 'Disk Detection', routeName: 'DiskCheck', path: '/diskcheck', icon: 'icon-CHKDSK16l', authId: 'E8', }, //diskcheckicon
                        //日志管理
                        { ch_title: '日志管理', en_title: 'Log Management', routeName: 'Log', path: '/Log', icon: 'icon-eventlog16l', authId: 'E9', }, //logicon
                        { ch_title: '任务管理', en_title: 'Task Management', routeName: 'task', path: '/task', icon: 'icon-task16l', authId: 'E9', }, //logicon
                    ]
                },
                //监控中心
                {
                    ch_title: '监控中心', en_title: 'Monitoring Center', icon: 'icon-monitoring16f', path: 'sub4', authId: 'F1', children: [ //oper
                        //告警信息
                        { ch_title: '告警信息', en_title: 'Warning Information', routeName: 'alertList', path: '/alertList', icon: 'icon-alarm16l', authId: 'F2', }, //monitor
                        { ch_title: '告警规则', en_title: 'Warning Rule', routeName: 'alarmRule', path: '/alarmRule', icon: 'icon-alarmrule16l', authId: 'F3', }, //monitor
                        { ch_title: '告警通道', en_title: 'Warning Channel', routeName: 'alarmChannel', path: '/alarmChannel', icon: 'icon-alarmchannel16l', authId: 'F3', }, //monitor
                        { ch_title: '告警配置', en_title: 'Warning Config', routeName: 'alertmanage', path: '/alertmanage', icon: 'icon-alarmconfiguration16l', authId: 'F4', }, //monitor
                    ]
                },
                //权限
                {
                    ch_title: '用户管理', en_title: 'User Management', icon: 'icon-usermanager16f', path: 'sub5', authId: 'G1', children: [
                        //告警信息
                        { ch_title: '用户', en_title: 'User', routeName: 'usermanage', path: '/usermanage', icon: 'icon-user16l', authId: 'G2', },
                        { ch_title: '权限配置', en_title: 'Permission Config', routeName: 'AuthorityConfig', path: '/authorityConfig', icon: 'icon-changepassword16l', authId: 'G3', },
                        { ch_title: 'Oauth2身份认证', en_title: 'Oauth2', routeName: 'OAuth', path: '/OAuth', icon: 'icon-account16l', authId: 'G6', },
                        { ch_title: '认证域管理', en_title: 'authentication', routeName: 'authentication', path: '/authentication', icon: 'icon-authority16f', authId: 'G5', },
                    ]
                },
                //数据保护
                {
                    ch_title: '数据保护', en_title: 'Data protection', icon: 'icon-dataprotection16f', path: 'sub6', authId: 'H1', children: [
                        //告警信息
                        { ch_title: '存储平台', en_title: 'Storage platform', routeName: 'store', path: '/store', icon: 'icon-pool16l', authId: 'H1', },
                        { ch_title: '保护网关', en_title: 'Protection gateway', routeName: 'gateway', path: '/gateway', icon: 'icon-gateway16l', authId: 'H1', },
                        { ch_title: '保护策略', en_title: 'Protection strategy', routeName: 'protect_strategy', path: '/protect_strategy', icon: 'icon-eventlog16l', authId: 'H1', },
                        { ch_title: '保护任务', en_title: 'Protection task', routeName: 'protect_task', path: '/protect_task', icon: 'icon-protectiontask16l', authId: 'H1', },
                        { ch_title: '复制关系', en_title: 'Copy relationship', routeName: 'copy_relationship', icon: 'icon-filecopy16l', path: '/copy_relationship', authId: 'H1', },
                    ]
                },
                //系统设置
                {
                    ch_title: '系统设置', en_title: 'System settings', icon: 'icon-setting16f', path: 'sub7', authId: 'I1', children: [
                        { ch_title: '集群接入平台', en_title: 'Cluster platform', routeName: 'cluster_access', path: '/cluster_access', icon: 'icon-cluster16l', authId: 'H1', },
                        { ch_title: '数据保护设置', en_title: 'DataProtect set', routeName: 'data_protect', path: '/data_protect', icon: 'icon-pools16l', authId: 'H1', },
                        { ch_title: '认证服务', en_title: 'Certification services', routeName: 'certification_service', path: '/certification_service', icon: 'icon-authservice16l', authId: 'I2', },

                    ]
                },
                //生态集成
                {
                    ch_title: '生态集成', en_title: 'Ecological integration', icon: 'icon-integration16f', path: 'sub8', authId: 'H1', children: [
                        { ch_title: '云原生', en_title: 'Cloud native', routeName: 'cloud_native', path: '/cloud_native', icon: 'icon-cloud16l', authId: 'H1', },
                    ]
                },
            ],
            defaultOpenKeys: ['sub1', 'sub2', 'sub3', 'sub4', 'sub5', 'sub6', 'sub7', 'sub8'],
            routePaths: JSON.parse(localStorage.getItem('routes')),
            authArray: JSON.parse(localStorage.getItem('tags')),
            finalMenus: []
        }
    },
    mounted() {
        // 获取.foot的高度
        this.footH = document.getElementsByClassName('foot')[0].clientHeight + 2 + 'px';
        this.filterMenus(this.menus_copy, []);
        // this.handleSelectMenuItem(this.$route.path);
    },

    // watch: {
    //     "$route.path"(newValue) {
    //         this.handleSelectMenuItem(newValue);
    //     }
    // },

    // computed: {
    //     getStoreMenuPath() {
    //         let arr = [];
    //         //用户拥有的权限路由
    //         let routePath = JSON.parse(localStorage.getItem('routes'));
    //         routePath.push('/block/detail');
    //         //存储管理的所有路由
    //         let storeMenuPath = ['/overview','/block','/block/detail','/fsview','/objview','/filesharing'];
    //         routePath.forEach(item => {
    //             storeMenuPath.forEach(item2 => {
    //                 if(item2 == item) {
    //                     arr.push(item2);
    //                 }
    //             })
    //         })
    //         return arr;
    //     },
    // },

    methods: {
        // 通过路由，过滤菜单栏
        filterMenus(data, finalData) {
            data.forEach(item => {
                if (this.authArray.indexOf(item.authId) != -1) {
                    if (item.children) {
                        finalData[finalData.length] = JSON.parse(JSON.stringify(item));
                        finalData[finalData.length - 1].children = [];
                        this.filterMenus(item.children, finalData[finalData.length - 1].children);
                    } else {
                        finalData.push(item);
                    }
                }
            })
            // console.log('mmmmm', finalData)
            this.menus = finalData;
        },

        //处理网络磁盘中，当跳转到块设备内详情的路由时不会变为选中状态的问题
        handleSelectMenuItem(val) {
            this.$nextTick(() => {
                let subMenuDiv = document.querySelector('.sub-menu-div');
                let currentMenuItem = document.querySelector('.net-menu-item');
                let menuADom = document.querySelector('.net-menu-item > a');
                if (this.getStoreMenuPath.indexOf(val) != -1) {
                    subMenuDiv.classList.add('extra-select-menu');
                } else {
                    subMenuDiv.classList.remove('extra-select-menu');
                }
                if (val == '/block/detail' || val == '/block') {
                    console.log(currentMenuItem.classList)
                    // currentMenuItem.classList.add('extra-select-menu-item');
                    currentMenuItem.style.backgroundColor = '#006db8';
                    menuADom.classList.add('extra-select-a');
                } else {
                    // currentMenuItem.classList.remove('extra-select-menu-item');
                    menuADom.classList.remove('extra-select-a');
                    currentMenuItem.style.backgroundColor = '#fff';
                }
            })
        },
    }
}
</script>

<style scoped>
.bar {
    position: fixed;
    left: 0;
    width: 205px;
    /* min-width: 205px; */
    height: calc(100% - 56px);
    background-color: #fff;
    overflow: auto;
    z-index: 999;
}

.bar:hover {
    overflow-y: auto;
    box-shadow: 0 0 6px rgba(0, 0, 0, .1);
}

.foot {
    font-size: 12px;
    position: fixed;
    bottom: 0;
    text-align: center;
    padding: 0.5rem;
    border-top: 1px solid #ccc;
    background-color: #fff;
    width: 197px;
}

/* .menu{
    background: red
} */
</style>

<style scoped>
.log-icon {
    color: var(--themeColor);
}

.icon-class {
    margin-right: 5px;
}

ul {
    background-color: transparent;
}

::v-deep.ant-menu-sub.ant-menu-inline {
    background-color: transparent;
}

.ant-menu-inline {
    border-right: none;
}
</style>



<!--概览-->
<a-menu-item :key="'/index'">
            <router-link :to='{name:"index"}'><a-icon :component = "general" />
            <span>{{$t('Home')}}</span></router-link>
        </a-menu-item>
<!-- <a-menu-item :key="'/physical'">
            <router-link :to='{name:"physical"}'><a-icon :component = "phy" />
            <span>{{$t('Physical-resources')}}</span></router-link>
        </a-menu-item> -->
<!--物理资源-->
<a-sub-menu key='sub1'>
            <span slot="title"><a-icon :component = "phy" /><span>{{$t('Physical-resources')}}</span></span>
            <a-menu-item :key="'/resources'"><router-link :to='{name:"resources"}'><a-icon :component = "sumary" />{{$t('Overview')}}</router-link></a-menu-item>
            <a-menu-item :key="'/physical'"><router-link :to='{name:"physical"}'><a-icon :component = "node" />{{$t('Node-info')}}</router-link></a-menu-item>
            <a-menu-item :key="'/topology'"><router-link :to='{name:"topology"}'><a-icon :component = "topology" />{{$t('Network_topology')}}</router-link></a-menu-item>
        </a-sub-menu>
<!--存储管理-->
<a-sub-menu key='sub2'>
            <span slot="title"><a-icon :component = "storage" /><span>{{$t('Storage-management')}}</span></span>
            <a-menu-item :key="'/overview'"><router-link :to='{name:"overview"}'><a-icon :component = "sumary" />{{$t('Overview')}}</router-link></a-menu-item>
            <a-menu-item :key="'/block'"><router-link :to='{name:"block"}'><a-icon :component = "disk" />{{$t('Network-disk')}}</router-link></a-menu-item>
            <a-menu-item :key="'/fsview'"><router-link :to='{name:"fsview"}'><a-icon :component = "file" />{{$t('File-system')}}</router-link></a-menu-item>
            <a-menu-item :key="'/objview'"><router-link :to='{name:"objview"}'><a-icon :component = "obj" />{{$t('Object-storage')}}</router-link></a-menu-item>
            <a-menu-item key='/filesharing'><router-link :to='{name:"filesharing"}'><a-icon :component = "share" />{{$t('File-sharing')}}</router-link></a-menu-item>
        </a-sub-menu>
<!--运维中心-->
<a-sub-menu key='sub3' class="menu">
            <span slot='title'><a-icon :component = "oper" /><span>{{$t('Operation')}}</span></span>
            <a-menu-item :key="'/cluster'"><router-link :to='{name:"cluster"}'><a-icon :component = "check" />{{$t('Cluster-check')}}</router-link></a-menu-item>
            <!-- <a-menu-item :key="'/capacity'"><router-link :to='{name:"capacity"}'><a-icon :component = "dila" />{{$t('Expan')}}/{{$t('Shrinkage')}}</router-link></a-menu-item> -->
            <a-menu-item :key="'/diskmgr'"><router-link :to='{name:"diskmgr"}'><a-icon :component = "osddm" />{{$t('OSD')}}</router-link></a-menu-item>
            <a-menu-item :key="'/regular'"><router-link :to='{name:"regular"}'><a-icon :component = "control" />{{$t('Cluster-regulation')}}</router-link></a-menu-item>
            <!-- <a-menu-item :key="'/per_config'"><router-link :to='{name:"per_config"}'><a-icon :component = "pre" />{{$t('Preconfiguration-file')}}</router-link></a-menu-item> -->
            <a-menu-item :key="'/erasure'"><router-link :to='{name:"erasure"}'><a-icon :component = "ec" />{{$t('Erasure-code')}}</router-link></a-menu-item>
            <a-menu-item :key="'/diskcheck'"><router-link :to='{name:"DiskCheck"}'><a-icon :component = "diskcheckicon" />{{$t('Disk-check')}}</router-link></a-menu-item>
            <a-menu-item :key="'/Log'"><router-link :to='{name:"Log"}'><a-icon class="log-icon" :component = "logicon" />{{$t('Log-manage')}}</router-link></a-menu-item>
            <!-- <a-menu-item :key="'/collect'"><router-link :to='{name:"collect"}'><a-icon :component = "col" />{{$t('Collect')}}</router-link></a-menu-item> -->
        </a-sub-menu>
<!--监控中心-->
<a-sub-menu key='sub4' class="menu">
            <span slot='title'><a-icon :component = "monitor" /><span>{{$t('Monitoring_center')}}</span></span>
            <a-menu-item :key="'/alertList'"><router-link :to='{name:"alertList"}'><a-icon :component = "alarm" />{{$t('Warning_info')}}</router-link></a-menu-item>
        </a-sub-menu>
<!-- <a-menu-item :key="'/test'">
            <router-link :to='{name:"test"}'>
                <a-icon :component = "general" /><span>测试</span>
            </router-link>
        </a-menu-item> -->



//概览
// { title:this.$t('Home'), routeName:'index', path:'/index', icon:general, },
{ ch_title:'概览', en_title:'Home', routeName:'index', path:'/index', icon:general, },
//物理资源
// { title:this.$t('Physical-resources'), icon:phy, path:'sub1', children: [
{ ch_title:'物理资源', en_title:'Physical resources', icon:phy, path:'sub1', children: [
//概况
// { title:this.$t('Overview'), routeName:'resources', path:'/resources', icon:sumary },
{ ch_title:'概况', en_title:'Overview', routeName:'resources', path:'/resources', icon:sumary },
//节点信息
// { title:this.$t('Node-info'), routeName:'physical', path:'/physical', icon:node },
{ ch_title:'节点信息', en_title:'Node information', routeName:'physical', path:'/physical', icon:node },
//网络拓扑
// { title:this.$t('Network_topology'), routeName:'topology', path:'/topology', icon:topology },
{ ch_title:'网络拓扑', en_title:'Network topology', routeName:'topology', path:'/topology', icon:topology },
] },
//存储管理
// { title:this.$t('Storage-management'), icon:storage, path:'sub2', children: [
{ ch_title:'存储管理', en_title:'Storage', icon:storage, path:'sub2', children: [
//概况
// { title:this.$t('Overview'), routeName:'overview', path:'/overview', icon:sumary },
{ ch_title:'概况', en_title:'Overview', routeName:'overview', path:'/overview', icon:sumary },
//网络磁盘
// { title:this.$t('Network-disk'), routeName:'block', path:'/block', icon:disk },
{ ch_title:'网络磁盘', en_title:'Network disk', routeName:'block', path:'/block', icon:disk },
//文件系统
// { title:this.$t('File-system'), routeName:'fsview', path:'/fsview', icon:file },
{ ch_title:'文件系统', en_title:'File system', routeName:'fsview', path:'/fsview', icon:file },
//对象存储
// { title:this.$t('Object-storage'), routeName:'objview', path:'/objview', icon:obj },
{ ch_title:'对象存储', en_title:'Object storage', routeName:'objview', path:'/objview', icon:obj },
//文件共享
// { title:this.$t('File-sharing'), routeName:'filesharing', path:'/filesharing', icon:share },
{ ch_title:'文件共享', en_title:'File sharing', routeName:'filesharing', path:'/filesharing', icon:share },
] },
//运维中心
// { title:this.$t('Operation'), icon:oper, path:'sub3', children: [
{ ch_title:'运维中心', en_title:'Operation', icon:oper, path:'sub3', children: [
//集群检查
// { title:this.$t('Cluster-check'), routeName:'cluster', path:'/cluster', icon:check },
{ ch_title:'集群检查', en_title:'Cluster check', routeName:'cluster', path:'/cluster', icon:check },
//OSD磁盘管理
// { title:this.$t('OSD'), routeName:'diskmgr', path:'/diskmgr', icon:osddm },
{ ch_title:'OSD磁盘管理', en_title:'OSD disk manage', routeName:'diskmgr', path:'/diskmgr', icon:osddm },
//集群调控
// { title:this.$t('Cluster-regulation'), routeName:'regular', path:'/regular', icon:control },
{ ch_title:'集群调控', en_title:'Cluster regulation', routeName:'regular', path:'/regular', icon:control },
//纠删码配置管理
// { title:this.$t('Erasure-code'), routeName:'erasure', path:'/erasure', icon:ec },
{ ch_title:'纠删码配置管理', en_title:'Erasure code c/s', routeName:'erasure', path:'/erasure', icon:ec },
//磁盘检测
// { title:this.$t('Disk-check'), routeName:'DiskCheck', path:'/diskcheck', icon:diskcheckicon },
{ ch_title:'磁盘检测', en_title:'Disk detection', routeName:'DiskCheck', path:'/diskcheck', icon:diskcheckicon },
//日志管理
// { title:this.$t('Log-manage'), routeName:'Log', path:'/Log', icon:logicon },
{ ch_title:'日志管理', en_title:'Log management', routeName:'Log', path:'/Log', icon:logicon },
] },
//监控中心
// { title:this.$t('Monitoring_center'), icon:oper, path:'sub4', children: [
{ ch_title:'监控中心', en_title:'Monitoring center', icon:oper, path:'sub4', children: [
//告警信息
// { title:this.$t('Warning_info'), routeName:'alertList', path:'/alertList', icon:monitor },
{ ch_title:'告警信息', en_title:'Warning information', routeName:'alertList', path:'/alertList', icon:monitor },
] },
//权限
{ ch_title:'权限', en_title:'auth', routeName:'AuthorityConfig', path:'/authorityConfig', icon:general },